package domain

import "time"

// 用户信息实体：指定；列名
type Source struct {
	Title    string    `gorm:"column:sourceTitle" structs:"title" json:"title"`
	FilePath string    `gorm:"column:sourceFilePath" structs:"filepath" json:"filepath"`
	Detail   string    `gorm:"column:sourceDetail" structs:"detail" json:"detail"`
	Time     time.Time `gorm:"column:sourceTime" structs:"time" json:"time"`
	ID       int       `gorm:"column:sourceID" structs:"id" json:"id"`
	UnionID  string    `gorm:"column:sourceUnionID" structs:"unionid" json:"unionid"`
	Category string    `gorm:"column:sourceCategory" structs:"category" json:"category"`
}

// 指定表名
func (source Source) TableName() string {
	return "source_data"
}
